import Vue from 'vue';

import * as echarts from 'echarts';
import { LineChart } from 'echarts/charts';
import { TitleComponent, TooltipComponent, GridComponent, AxisPointerComponent, LegendComponent } from 'echarts/components';
import {
    CanvasRenderer
} from 'echarts/renderers';

echarts.use(
    [TitleComponent, TooltipComponent, GridComponent, LineChart, CanvasRenderer, AxisPointerComponent, LegendComponent]
);

Vue.prototype.$echart = echarts;